<%--
  Created by IntelliJ IDEA.
  User: 59906
  Date: 2019/11/25
  Time: 21:35
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
<%--  ${user.username} 的密码是${user.password}登录成功--%>
<form action="${pageContext.request.contextPath}/client/select" method="post">
  邮箱:<input type="text" name="email"/><br>
  <input type="submit" value="Submit"/><br>
</form>
<c:forEach items="${allClient}" var="client">
  <td>${client.name}</td>
</c:forEach>
${allClient.get(0).toString()}
<h3>查询</h3>
<form action="${pageContext.request.contextPath}/client/select" method="post">
  name:<input type="text" name="email" value="${client.name}"/><br>
  <input type="submit" value="Submit"/><br>
</form>
<h3>添加</h3>
<form action="${pageContext.request.contextPath}/client/add" method="post">
  name:<input type="text" name="name"/><br>
  sex:<input type="text" name="sex"/><br>
  email:<input type="text" name="email"/><br>
  phone:<input type="text" name="phone"/><br>
  birth:<input type="date" name="birth"/><br>

  <input type="submit" value="Submit"/><br>
</form>
<h3>修改</h3>
<form action="${pageContext.request.contextPath}/client/update" method="post">
  name:<input type="text" name="name" value="${client.name}"/><br>
  <input type="submit" value="Submit"/><br>
</form>
  </body>
</html>
